from ronglian_sms_sdk import SmsSDK

accId = '2c94811c946f6bfb0196a45014b76925'
accToken = '04cd81163cfd49448265fecbb962214e'
appId = '2c94811c946f6bfb0196a450169a692c'

def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    # print(resp)
    return resp


# send_message('13525136702','1234')